﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer.Domain.IRepositories
{
    public interface IEmailRepository
    {
        /// <summary>
        /// 存验证码
        /// </summary>
        /// <param name="email"></param>
        /// <param name="code"></param>
        /// <returns></returns>
        public Task<bool> UpdateEmailSenderAsync(string email, string code);
        /// <summary>
        /// 验证验证码
        /// </summary>
        /// <param name="email"></param>
        /// <param name="code"></param>
        /// <returns></returns>
        public Task<bool> FindEmailSenderAsync(string email, string code);
    }
}
